package cn.lili.modules.promotion.client;

import cn.lili.modules.constant.ServiceConstant;
import cn.lili.modules.promotion.entity.dto.CallbackBlindboxDTO;
import cn.lili.modules.promotion.fallback.BoxLotteryTicketClientFallback;
import cn.lili.modules.promotion.fallback.BoxMhGoodsClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(path = "${server.servlet.context-path}", name = ServiceConstant.PROMOTION_SERVICE, contextId = "box-lottery-ticket-client", fallback = BoxLotteryTicketClientFallback.class)
public interface BoxLotteryTicketClient {

    /**
     * 回收奖券
     *
     * @param id 订单ID
     * @param remark 备注
     */
    @GetMapping("/feign/recycle")
    boolean recycle(@RequestParam String id,@RequestParam String remark);

}
